#include <Reg51.h>
#include "delay.h"
#include "LCD1602.h"

void main()
{
	//unsigned char str[] = "Hello LCD 1602";
	unsigned char str1[] = "123456F";
	unsigned char code str[] = { 0x00,0x00,0x00,0x00,0x1F,0x00,0x00,0x00 };		//一
	unsigned char code str2[] = { 0x00,0x00,0x00,0x0E,0x00,0x1F,0x00,0x00 }; 	//二
	unsigned char code str3[] = { 0x08,0x14,0x08,0x07,0x08,0x08,0x08,0x07 }; 	//摄氏度
	LCDInit();
	DelayXms(10);
	//LCDwriteCGRAM();
	LCDShowStr(0, 1, str1);
	LCDSetChar(9, 0, 0, str2);
	LCDSetChar(8, 0, 1, str);
	LCDSetChar(10, 0, 2, str3);
	while(1);
}

